//
//  ReadLoginData.m
//  EasyToTesco
//
//  Created by mc on 16/3/14.
//  Copyright © 2016年 Jack. All rights reserved.
//

#import "ReadLoginData.h"

@implementation ReadLoginData


+ (NSMutableDictionary *)readLoginData {
    NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
    NSString *path=[paths objectAtIndex:0];
    
    NSLog(@"---%@", path);
    //获取一个plist文件
    NSString *filename=[path stringByAppendingPathComponent:@"loginData.plist"];
    //读文件
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithContentsOfFile:filename];//[NSMutableArray arrayWithContentsOfFile:filename];
    return dic;
}
@end
